package com.yxinsur.imc.business.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;

/**
 * 代理人培训记录对象 imc_broker_training_record
 * 
 * @author imc
 * @date 2021-07-26
 */
public class ImcBrokerTrainingRecord extends BaseImcEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 代理人id */
    @Excel(name = "代理人id")
    private Long brokerId;

    /** 培训记录内容 */
    @Excel(name = "培训记录内容")
    private String trainingRecord;

    /** 前端传YYYY-MM-DD */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "前端传YYYY-MM-DD", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构） */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBrokerId(Long brokerId) 
    {
        this.brokerId = brokerId;
    }

    public Long getBrokerId() 
    {
        return brokerId;
    }
    public void setTrainingRecord(String trainingRecord) 
    {
        this.trainingRecord = trainingRecord;
    }

    public String getTrainingRecord() 
    {
        return trainingRecord;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("brokerId", getBrokerId())
            .append("trainingRecord", getTrainingRecord())
            .append("recordTime", getRecordTime())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .append("tenantId", getTenantId())
            .toString();
    }
}
